<?php
header("Content-type:text/html;charset=utf-8"); 
require(dirname(__FILE__).'/inc/common.inc.php');

$submit = isset($_POST['submit']) ? trim($_POST['submit']): '';
$act = isset($_REQUEST['act']) ? trim($_REQUEST['act']): 'manage';
$mod = isset($_REQUEST['mod']) ? basename($_REQUEST['mod']): 'welcome';
$page = isset($_REQUEST['page']) ? basename($_REQUEST['page']): 1;

define('MOD', $mod);
$mod_class  = ucfirst(MOD);
$mod_class_file   = PINGCO_ROOT . '/admin/inc/' . MOD. '.class.php';
$mod_file   = PINGCO_ROOT . '/admin/' . MOD. '.php';

if (!in_array(MOD, array('welcome', 'config', 'start', 'juese', 'changjing', 'duihua', 'user')))
{
	die ('模块调用出错！');
}

@require($mod_class_file);
@require($mod_file);

//include admintpl($mod);
?>